﻿using System.Net.Http;
using VK.Actions;

namespace VK.Client
{
    public class VkApiClient
    {
        protected const string ApiVersion = "5.101";
        protected const string ApiHost = "https://api.vk.com/method";
        private VkApiRequest _request;
        

        public VkApiClient(string apiVersion = ApiVersion, string language = default, HttpMessageHandler? handler = null)
        {
            _request = new VkApiRequest(apiVersion, language, ApiHost, handler);
        }
        
        private Users _users;
        private Wall _wall;
        public Users Users => _users ??= new Users(_request);

        public Wall Wall => _wall ??= new Wall(_request);
    }
}